<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Encryption: INortel Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Encryption
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_i_nortel.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_i_nortel-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">INortel Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>Interface which is used by the company <a class="el" href="class_nortel.html" title="Adapter between the Nortel and the intern interface.">Nortel</a>.  
 <a href="class_i_nortel.html#details">More...</a></p>

<p><code>#include &lt;INortel.h&gt;</code></p>
<div class="dynheader">
Inheritance diagram for INortel:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_i_nortel.png" usemap="#INortel_map" alt=""/>
  <map id="INortel_map" name="INortel_map">
<area href="class_nortel.html" title="Adapter between the Nortel and the intern interface." alt="Nortel" shape="rect" coords="0,56,49,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a9ecb82e872c4aa0399709686c55d3a5d"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_nortel.html#a9ecb82e872c4aa0399709686c55d3a5d">TEncoding</a> { <b>eRSA</b>, 
<b>eCaesar</b>
 }</td></tr>
<tr class="memdesc:a9ecb82e872c4aa0399709686c55d3a5d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines which Crypto algorithms should be used. <br/></td></tr>
<tr class="separator:a9ecb82e872c4aa0399709686c55d3a5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aeb60382c8d6e27343dcb9f62cc8e6659"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeb60382c8d6e27343dcb9f62cc8e6659"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_nortel.html#aeb60382c8d6e27343dcb9f62cc8e6659">~INortel</a> ()</td></tr>
<tr class="memdesc:aeb60382c8d6e27343dcb9f62cc8e6659"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor of <a class="el" href="class_i_nortel.html" title="Interface which is used by the company Nortel.">INortel</a> Pure virtual destructor so that the destructor of inherited classes is called. <br/></td></tr>
<tr class="separator:aeb60382c8d6e27343dcb9f62cc8e6659"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a439da4b468409cccdc11155f248cd86e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_nortel.html#a439da4b468409cccdc11155f248cd86e">Decipher</a> (<a class="el" href="class_i_nortel.html#a9ecb82e872c4aa0399709686c55d3a5d">TEncoding</a> enc, std::string const &amp;fileName)=0</td></tr>
<tr class="memdesc:a439da4b468409cccdc11155f248cd86e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decrypts a file and stores the result in another file.  <a href="#a439da4b468409cccdc11155f248cd86e"></a><br/></td></tr>
<tr class="separator:a439da4b468409cccdc11155f248cd86e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58e321ef029c26b24468a110c9c98bce"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_nortel.html#a58e321ef029c26b24468a110c9c98bce">Encipher</a> (<a class="el" href="class_i_nortel.html#a9ecb82e872c4aa0399709686c55d3a5d">TEncoding</a> enc, std::string const &amp;fileName)=0</td></tr>
<tr class="memdesc:a58e321ef029c26b24468a110c9c98bce"><td class="mdescLeft">&#160;</td><td class="mdescRight">Encrypts a file and stores the result in another file.  <a href="#a58e321ef029c26b24468a110c9c98bce"></a><br/></td></tr>
<tr class="separator:a58e321ef029c26b24468a110c9c98bce"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Interface which is used by the company <a class="el" href="class_nortel.html" title="Adapter between the Nortel and the intern interface.">Nortel</a>. </p>
<p>The <a class="el" href="class_i_nortel.html" title="Interface which is used by the company Nortel.">INortel</a> is an Interface which declares the functions as wished by the company <a class="el" href="class_nortel.html" title="Adapter between the Nortel and the intern interface.">Nortel</a>. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a439da4b468409cccdc11155f248cd86e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void INortel::Decipher </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_i_nortel.html#a9ecb82e872c4aa0399709686c55d3a5d">TEncoding</a>&#160;</td>
          <td class="paramname"><em>enc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string const &amp;&#160;</td>
          <td class="paramname"><em>fileName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Decrypts a file and stores the result in another file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">enc</td><td>Determines which Crypto algorithm to be used. </td></tr>
    <tr><td class="paramname">fileName</td><td>The file to be decrypted. The function uses the CrypterFactor to instantiate a crypto algorithm object depending on the parameter enc. It then tries to open and read the whole file and encrypts it with the first instantiated crypto algorithm. After decrypting it stores the data in a file with the name fileName minus the suffix which is specified by the crypto algorithm. (If the filename has that suffix) </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::Exception</td><td>If an error happens when opening, closing or reading a file. </td></tr>
  </table>
  </dd>
</dl>

<p>Implemented in <a class="el" href="class_nortel.html#a8c6a62562c1cd748ac5a93291e1ea5e3">Nortel</a>.</p>

</div>
</div>
<a class="anchor" id="a58e321ef029c26b24468a110c9c98bce"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void INortel::Encipher </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_i_nortel.html#a9ecb82e872c4aa0399709686c55d3a5d">TEncoding</a>&#160;</td>
          <td class="paramname"><em>enc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string const &amp;&#160;</td>
          <td class="paramname"><em>fileName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Encrypts a file and stores the result in another file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">enc</td><td>Determines which Crypto algorithm should be used. </td></tr>
    <tr><td class="paramname">fileName</td><td>The file to be encrypted. The function uses the CrypterFactor to instantiate a crypto algorithm object depending on the parameter enc. It then tries to open and read the whole file and encrypts it with the first instantiated crypto algorithm. After encrypting it stores the data in a file with the name fileName plus a suffix which is specified by the crypto algorithm. </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::Exception</td><td>If an error happens when opening, closing or reading a file. </td></tr>
  </table>
  </dd>
</dl>

<p>Implemented in <a class="el" href="class_nortel.html#a24b73e801917c8f35a94d06b80f49f9f">Nortel</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_i_nortel.html">INortel</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
